//
//  CTMediator+MainModule.m
//  ModuleManager
//
//  Created by guohongqi on 2021/6/10.
//

#import "CTMediator+MainModule.h"

@implementation CTMediator (MainModule)
- (UIViewController *)mainModuleRecommendVCWithData:(NSArray *)datas suspectedDatas:(NSArray *)suspectedDatas index:(NSInteger)index{
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithCapacity:0];
    [dic setValue:datas forKey:@"datas"];
    [dic setValue:suspectedDatas forKey:@"suspectedDatas"];
    [dic setValue:@(index) forKey:@"index"];
    return [self performTarget:@"Main" action:@"createRecommendVCWithData" params:dic shouldCacheTarget:YES];
}

- (UIViewController *)mainModuleBillCodeDetailVCWithData:(NSString *)searchPredicate{
    return [self performTarget:@"Main" action:@"createBillcodeVCWithData" params:@{@"predicate":searchPredicate} shouldCacheTarget:YES];
}

- (UIViewController *)mainModuleBillCodeDetailVCWithBillCode:(NSString *)billCode companyCode:(NSString *)companyCode{
    return [self performTarget:@"Main" action:@"billCodeDetailVCWithCode" params:@{@"billCode":billCode,@"companyCode":companyCode} shouldCacheTarget:YES];
}

- (void)mainModuleOCRSDKInit{
    [self performTarget:@"Main" action:@"ocrSDKinit" params:nil shouldCacheTarget:YES];
}



@end
